﻿using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;

namespace FwProject.Web.FwTagHelper
{
    [HtmlTargetElement("dl")]
    public class ListDtTagHelper : TagHelper
    {

        [HtmlAttributeName("asp-value")]
        public List<string> Value { get; set; }

        [HtmlAttributeName("asp-id")]
        public string Id { get; set; }

        [HtmlAttributeName("asp-name")]
        public string Name { get; set; }


        [HtmlAttributeName("asp-href")]
        public string DataHref { get; set; }

    
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {


            output.TagName = "dl";
         
            //foreach (var item in Value)
            //{
            //    output.Content.AppendHtml($"");
            //    output.Content.AppendHtml(item);
            //}
        }

    }
}
